package com.foreknow.demo1;

import java.util.Scanner;

public class ScannerDemo {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
//        double a1 = input.nextDouble();
//        System.out.println(a1);
        System.out.println("请输入姓名:");
        String name = input.next();
        System.out.println("请输入年龄:");
        int age = input.nextInt();
        System.out.println("请输入学校:");
        String school = input.next();
        System.out.println("请输入成绩:");
        int score = input.nextInt();
        System.out.println(" 姓名:"+name+" 年龄:"+age+" 学校:"+school+" 成绩:"+score);
    }
}
